package com.quanyan.orderpay.service;

import com.quanyan.api.APIResponse;
import com.quanyan.orderpay.vo.request.RespPayWaySettingVo;
import com.quanyan.pay.entity.TbPayWaySetting;

import java.util.List;

/**
 * Created by Zheng.Ke
 * Date 2016/8/15.
 */
public interface PayWaySettingService {

    /**
     * 获取支付方式配置列表
     * @return
     */
    APIResponse<List<RespPayWaySettingVo>> payWayList();

    /**
     * 根据平台查找
     * @param platform
     * @return
     */
    List<TbPayWaySetting> findByPlatform(String platform);

    /**
     * 更改设置
     * @return
     * @param payId
     * @param platform
     * @param enabled
     */
    APIResponse changeSetting(int payId, String platform, byte enabled);

    /**
     * 根据payId、platform来查找TbPayWaySetting
     * @param payId
     * @param platform
     * @return
     */
    TbPayWaySetting getByPayIdAndPlatform(int payId, String platform);
}
